<?php

namespace Nhan\Realtime;

use Evenement\EventEmitterInterface;
use Ratchet\ConnectionInterface;
use Ratchet\MessageComponentInterface;

interface MessengerInterface extends MessageComponentInterface
{
    public function getClientByConnection(ConnectionInterface $conn);
    public function getEmitter();
    public function setEmitter(EventEmitterInterface $emitter);
    public function getClients();
}